package com.gc.compay.controller;


import com.gc.compay.service.OrderService;
import com.gsj.common.pojo.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * @program: clms-nine
 * @description:订单的控制层
 * @author: 智高超
 * @create: 2021-07-23 17:01
 **/
@RestController
@RequestMapping("compay")
public class OrderController {
    @Resource
    OrderService orderService;

    @PostMapping("/getall/{value2}")
    public R getall(@PathVariable("value2") String ymonth){
        System.out.println(orderService.getall(ymonth));
       return orderService.getall(ymonth);
    }

}
